const students  = require('./students')

const addFunc = (ops) => {
    const obj = JSON.parse(ops.body);
    console.log(ops);
    console.log(obj);
    //students.students.student.push(obj);
    const res = students.students.student;
    res.push(obj);
    return res;
};
module.exports = {
    path: '/api/add',
    type: 'post',
    func: addFunc
}